<template>
  <div>
    <h1>About</h1>
    <div class="news-layout">
      <div class="new-list">
        <ul>
          <li><router-link to="/about/talkLove">情话</router-link></li>
          <li><router-link to="/about/count">count</router-link></li>
        </ul>
      </div>
      <div class="news-detail">
        <router-view></router-view>
      </div>
    </div>
  </div>
</template>

<script setup></script>

<style lang="scss" scoped>
.news-layout {
  display: flex;
  gap: 20px; /* 两栏间距 */
  height: 100%;
}
.new-list {
  width: 200px;
  list-style: none;
  padding: 0;
  margin: 0;
  border-right: 1 solid #eee;
}
.news-detail {
  flex: 1; /* 右侧占剩余空间 */
  padding-left: 20px;
}
</style>
